import Vue from 'vue'
import Router from 'vue-router'
import H5index from '@/components/contaners/H5index'


// 我的订单页
// import myOrder from '@/components/contaners/myOrder'
// const myOrder = () => import('@/components/contaners/myOrder')
const myOrder = resolve => require(['@/components/contaners/myOrder'], resolve)


// 第二版我的订单
// import TmyOrder from '@/components/contaners/TmyOrder'
// const TmyOrder = () => import('@/components/contaners/TmyOrder')
const TmyOrder = resolve => require(['@/components/contaners/TmyOrder'], resolve)


// 第三版我的订单
// import THmyOrder from '@/components/contaners/THmyOrder'
// const THmyOrder = () => import('@/components/contaners/THmyOrder')
const THmyOrder = resolve => require(['@/components/contaners/THmyOrder'], resolve)


// 加盟页
// import joinIn from '@/components/contaners/joinIn'
// const joinIn = () => import('@/components/contaners/joinIn')
const joinIn = resolve => require(['@/components/contaners/joinIn'], resolve)


// 第二版加盟页
// import TjoinIn from '@/components/contaners/TjoinIn'
// const TjoinIn = () => import('@/components/contaners/TjoinIn')
const TjoinIn = resolve => require(['@/components/contaners/TjoinIn'], resolve)


// 第san版加盟页
// import THjoinIn from '@/components/contaners/THjoinIn'
// const THjoinIn = () => import('@/components/contaners/THjoinIn')
const THjoinIn = resolve => require(['@/components/contaners/THjoinIn'], resolve)


// 第二版邀请好友页
// import TInvitation from '@/components/contaners/TInvitation'
// const TInvitation = () => import('@/components/contaners/TInvitation')
const TInvitation = resolve => require(['@/components/contaners/TInvitation'], resolve)


// 第三版邀请好友页
// import THInvitation from '@/components/contaners/THInvitation'
// const THInvitation = () => import('@/components/contaners/THInvitation')
const THInvitation = resolve => require(['@/components/contaners/THInvitation'], resolve)


// 第二版店铺详情页
// import Tshop from '@/components/contaners/Tshop'
// const Tshop = () => import('@/components/contaners/Tshop')
const Tshop = resolve => require(['@/components/contaners/Tshop'], resolve)


// 第三版店铺详情页
// import THshop from '@/components/contaners/THshop'
// const THshop = () => import('@/components/contaners/THshop')
const THshop = resolve => require(['@/components/contaners/THshop'], resolve)
const THmyDisValue = resolve => require(['@/components/contaners/THmyDisValue'], resolve)


// 邀请好友页
// import Invitation from '@/components/contaners/Invitation'
// const Invitation = () => import('@/components/contaners/Invitation')
const Invitation = resolve => require(['@/components/contaners/Invitation'], resolve)


// 店铺详情页
// import shop from '@/components/contaners/shop'
// const shop = () => import('@/components/contaners/shop')
const shop = resolve => require(['@/components/contaners/shop'], resolve)


// share 过渡
// import ShareInterim from '@/components/contaners/ShareInterim'
// const ShareInterim = () => import('@/components/contaners/ShareInterim')
const ShareInterim = resolve => require(['@/components/contaners/ShareInterim'], resolve)

const Fshop = resolve => require(['@/components/contaners/Fshop'], resolve)
const FjoinIn = resolve => require(['@/components/contaners/FjoinIn'], resolve)
const FmyOrder = resolve => require(['@/components/contaners/FmyOrder'], resolve)
const FInvitation = resolve => require(['@/components/contaners/FInvitation'], resolve)
//第四版我赚的钱
const FmyDisValue = resolve => require(['@/components/contaners/FmyDisValue'], resolve)

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [{ // index
    path: '/H5index/:activityId/:userOpenId/:inviteUserOpenId',
    name: 'H5index',
    component: H5index,
    meta: {
      title: '首页入口'
    }
  }, {
    path: '/myOrder/:activityId/:openId',
    name: 'myOrder',
    component: myOrder
  }, {
    path: '/joinIn',
    name: 'joinIn',
    component: joinIn
  }, {
    path: '/TjoinIn',
    name: 'TjoinIn',
    component: TjoinIn
  }, {
    path: '/THjoinIn',
    name: 'THjoinIn',
    component: THjoinIn
  },{
    path: '/FjoinIn',
    name: 'FjoinIn',
    component: FjoinIn
  }, {
    path: '/TmyOrder/:activityId/:openId',
    name: 'TmyOrder',
    component: TmyOrder
  }, {
    path: '/Tshop/:businessId',
    name: 'Tshop',
    component: Tshop
  }, {
    path: '/TInvitation/:activityId/:openId',
    name: 'TInvitation',
    component: TInvitation
  }, {
    path: '/THshop/:businessId/:activityId',
    name: 'THshop',
    component: THshop
  },{
    path: '/Fshop/:businessId/:activityId',
    name: 'Fshop',
    component: Fshop
  }, {
    path: '/THInvitation/:activityId/:openId',
    name: 'THInvitation',
    component: THInvitation
  }, {
    path: '/FInvitation/:activityId/:openId',
    name: 'FInvitation',
    component: FInvitation
  },{
    path: '/THmyOrder/:activityId/:openId',
    name: 'THmyOrder',
    component: THmyOrder
  },{
    path: '/THmyDisValue/:activityId/:openId',
    name: 'THmyDisValue',
    component: THmyDisValue
  }, {
    path: '/FmyOrder/:activityId/:openId',
    name: 'FmyOrder',
    component: FmyOrder
  },{
    path: '/FmyDisValue/:activityId/:openId',
    name: 'FmyDisValue',
    component: FmyDisValue
  },{
    path: '/Invitation/:activityId/:openId',
    name: 'Invitation',
    component: Invitation
  }, {
    path: '/shop/:businessId',
    name: 'shop',
    component: shop
  },{
    path: '/ShareInterim/:activityId/:inviteUserOpenId',
    name: 'ShareInterim',
    component: ShareInterim
  }]
})
